package com.example.springboot.flowable.listener;

/**
 * @author yuwl
 * @description
 * @since 2024-08-09 16:29
 */
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;
@Component("endExecutionListenerBean")
public class EndExecutionListener implements ExecutionListener {
    @Override
    public void notify(DelegateExecution execution) {
        System.out.println("Process Ended: " + execution.getProcessInstanceId());
        // 添加自定义逻辑
    }
}
